using System;
using Common;
using System.Collections.Generic;
using Microsoft.Practices.CompositeWeb;
using ProjectDan.Business.Interface.Services;

namespace ProjectDan.CRM
{
    public class CRMController : ICRMController
    {
        protected IBusinessService BusinessService;

        public CRMController([ServiceDependency] IBusinessService businessService)
        {
            BusinessService = businessService;
        }

        public int SaveUploadedFile(UploadedFile uploadedFile)
        {
            return BusinessService.SaveUploadedFile(uploadedFile);
        }

        public UploadedFile FindUploadedFileById(int id)
        {
            return BusinessService.FindUploadedFileById(id);
        }

        public IEnumerable<UploadedFile> GetAllUploadedFiles()
        {
            return BusinessService.GetAllUploadedFiles();
        }

        #region ICRMController Members


        public LinkMaintainViewModel FindLinkMaintViewModelById(int id)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region ICRMController Members


        public void Save(LinkMaintainViewModel model)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
